<template>
    <div class="skeleton-index">
        <div class="index-view">
            <div class="v-cards">
                <div class="c-item" :key="key" v-for="(item, key) in 2">
                    <div class="i-author">
                        <div class="a-left">
                            <div class="img skeleton-block"></div>
                            <div class="span skeleton-block"></div>
                        </div>
                        <div class="a-right skeleton-block">
                        </div>
                    </div>
                    <div class="i-content">
                        <div class="c-left">
                            <div class="l-title skeleton-block">
                            </div>
                            <div class="l-desc">
                                <div class="d-p skeleton-block"></div>
                            </div>
                        </div>
                        <div class="c-right skeleton-block"></div>
                    </div>
                    <div class="i-do">
                        <div class="d-item skeleton-block">
                        </div>
                        <div class="d-item skeleton-block">
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</template>

<style lang="less" scoped>
    .skeleton-index {
        .index-view {
            padding-top: 180px;

            .v-cards {
                padding: 20px 0;

                .c-item {
                    padding-bottom: 30px;
                    background: white;

                    .i-author {
                        display: flex;
                        align-items: center;
                        justify-content: space-between;
                        height: 106px;
                        padding: 0 30px;

                        .a-left {
                            display: flex;
                            align-items: center;

                            .img {
                                width: 44px;
                                height: 44px;
                                border-radius: 22px;
                            }

                            .span {
                                width: 70px;
                                height: 30px;
                                margin-left: 10px;
                            }
                        }

                        .a-right {
                            width: 70px;
                            height: 30px;
                        }
                    }

                    .i-content {
                        position: relative;
                        padding: 0 30px;

                        .c-left {
                            padding-right: 200px;
                            .l-title {
                                width: 70px;
                                height: 30px;
                            }

                            .l-desc {
                                padding: 20px 0;
                                color: #71777c;

                                .d-p {
                                    height: 100px;
                                }
                            }
                        }

                        .c-right {
                            position: absolute;
                            top: 50%;
                            right: 30px;
                            transform: translateY(-50%);
                            width: 180px;
                            height: 180px;
                            background-size: auto 100%;
                        }
                    }

                    .i-do {
                        display: flex;
                        padding: 0 30px;

                        .d-item {
                            width: 70px;
                            height: 30px;

                            &:not(:first-child) {
                                margin-left: 40px;
                            }
                        }
                    }

                    &:not(:first-child) {
                        margin-top: 20px;
                    }
                }
            }
        }
    }
</style>